package net.diaowen.dwsurvey.service.impl;

import net.diaowen.common.service.BaseServiceImpl;
import net.diaowen.dwsurvey.dao.TorgDao;
import net.diaowen.dwsurvey.entity.Torg;
import net.diaowen.dwsurvey.service.TorgManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TorgManagerImpl extends BaseServiceImpl<Torg, String> implements TorgManager {
    @Autowired
    private TorgDao torgDao;

    @Override
    public List<Torg> selectall() {
        return torgDao.selectall();
    }

    @Override
    public int setorgname(int id, String orgname) throws Exception {
        return torgDao.setorgname(id,orgname);
    }

    @Override
    public void setBaseDao() {
        this.baseDao=torgDao;

    }
}
